<?php /*a:1:{s:45:"D:\phpstudy\WWW\tp6\view\admin\rule\edit.html";i:1577520562;}*/ ?>

<form style="padding:20px;" class="layui-form layui-form-pane ruleForm" id="ruleEdit">
    <input type="hidden" value="<?php echo htmlentities($info['id']); ?>" name="id" />
    <div class="layui-form-item">
        <label class="layui-form-label"><i class="required-color">*</i>父节点：</label>
        <div class="layui-input-block">
            <select name="pid" id="parent_id" lay-filter="parent_id" lay-verify="required" lay-search="" >
                <option value="0">根节点</option>
                <?php if(is_array($ruleList) || $ruleList instanceof \think\Collection || $ruleList instanceof \think\Paginator): $i = 0; $__LIST__ = $ruleList;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;if($info): ?>
                <option <?php if($info[
                'pid']==$vo['id']): ?>selected<?php endif; ?> value="<?php echo htmlentities($vo['id']); ?>"><?php echo htmlentities($vo['ltitle']); ?></option>
                <?php else: ?>
                <option <?php if($pid==$vo['id']): ?>selected<?php endif; ?> value="<?php echo htmlentities($vo['id']); ?>"><?php echo htmlentities($vo['ltitle']); ?></option>
                <?php endif; ?>
                <?php endforeach; endif; else: echo "" ;endif; ?>
            </select>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label"><i class="required-color">*</i>名称：</label>
        <div class="layui-input-inline">
            <input type="text" name="title"  placeholder="请输入名称" value="<?php echo htmlentities($info['title']); ?>" autocomplete="off" class="layui-input">
        </div>
        <div class="layui-form-mid layui-word-aux">请输入操作的名称</div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label"><i class="required-color">*</i>控制器/方法：</label>
        <div class="layui-input-inline">
            <input type="text" name="name"  placeholder="请输入名称" value="<?php echo htmlentities($info['name']); ?>" autocomplete="off" class="layui-input">
        </div>
        <div class="layui-form-mid layui-word-aux">格式：controller/method</div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label"><i class="required-color">*</i>图标：</label>
        <div class="layui-input-inline">
            <input type="text" name="icon"  placeholder="请输入编码" value="<?php echo htmlentities($info['icon']); ?>" autocomplete="off" class="layui-input">
        </div>
    </div>
</form>
<script>
    layui.use('form', function(){
        layui.form.render();
    });
</script>